import "./assets/main.css";

import { createApp } from "vue";
import { createPinia } from "pinia";
import * as antIcons from "@ant-design/icons-vue";
import App from "./App.vue";
import router from "./router";

const app = createApp(App);
// 注册组件
for (const [key, component] of Object.entries(antIcons)) {
  app.component(key, component);
}

app.config.globalProperties.$antIcons = antIcons;
app.use(createPinia());
app.use(router);
app.mount("#app");
